package com.atguigu.gmall.ware.constant;

public class MqConst {

	/**
	 * 取消订单，发送延迟队列
	 */
	public static final String EXCHANGE_DIRECT_ORDER_CANCEL = "exchange.direct.order.cancel";// "exchange.direct.order.create"
																								// test_exchange;

	public static final String ROUTING_ORDER_CANCEL = "order.create";

	// 延迟取消订单队列
	public static final String QUEUE_ORDER_CANCEL = "queue.order.cancel";

	public static final String QUEUE_SECKILL_ORDER_CANCEL = "queue.seckill.order.cancel";

	// 延迟时间
	public static final int DELAY_TIME = 30 * 60;

	/**
	 * 订单支付
	 */
	public static final String EXCHANGE_DIRECT_PAYMENT_PAY = "exchange.direct.payment.pay";

	public static final String ROUTING_PAYMENT_PAY = "payment.pay";

	// 队列
	public static final String QUEUE_PAYMENT_PAY = "queue.payment.pay";

	/**
	 * 减库存
	 */
	public static final String EXCHANGE_DIRECT_WARE_STOCK = "exchange.direct.ware.stock";

	public static final String ROUTING_WARE_STOCK = "ware.stock";

	// 队列
	public static final String QUEUE_WARE_STOCK = "queue.ware.stock";

	/**
	 * 减库存成功，更新订单状态
	 */
	public static final String EXCHANGE_DIRECT_WARE_ORDER = "exchange.direct.ware.order";

	public static final String ROUTING_WARE_ORDER = "ware.order";

	// 队列
	public static final String QUEUE_WARE_ORDER = "queue.ware.order";

	public static final String MQ_KEY_PREFIX = "mq:list";

	public static final int RETRY_COUNT = 3;

}
